/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 幸运爆款优惠券Entity
 * @author 李欣荣
 * @version 2018-10-11
 */
public class HkShopLuckyBurstCoupon extends DataEntity<HkShopLuckyBurstCoupon> {
	
	private static final long serialVersionUID = 1L;
	private String playTime;		// 播放时间段
	private HkShopCoupon coupon;		// 优惠券id
	private String productId;		// 商品id
	private Date beginTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String state;		// 状态
	private String integral;		// 乐币
	private String activityStocks;		// 活动库存
	private String lastStocks;		// 剩余库存
	private String boughtStocks;		// 已买库存
	private String discount;		// 折扣
	private List<HkShopLuckyBurstCouponAdv> hkShopLuckyBurstCouponAdvList = Lists.newArrayList();		// 子表列表
	
	public HkShopLuckyBurstCoupon() {
		super();
	}

	public HkShopLuckyBurstCoupon(String id){
		super(id);
	}

	public String getPlayTime() {
		return playTime;
	}

	public void setPlayTime(String playTime) {
		this.playTime = playTime;
	}
	
	public HkShopCoupon getCoupon() {
		return coupon;
	}

	public void setCoupon(HkShopCoupon coupon) {
		this.coupon = coupon;
	}
	
	@Length(min=0, max=100, message="商品id长度必须介于 0 和 100 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=11, message="乐币长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	@Length(min=0, max=11, message="活动库存长度必须介于 0 和 11 之间")
	public String getActivityStocks() {
		return activityStocks;
	}

	public void setActivityStocks(String activityStocks) {
		this.activityStocks = activityStocks;
	}
	
	@Length(min=0, max=11, message="剩余库存长度必须介于 0 和 11 之间")
	public String getLastStocks() {
		return lastStocks;
	}

	public void setLastStocks(String lastStocks) {
		this.lastStocks = lastStocks;
	}
	
	@Length(min=0, max=11, message="已买库存长度必须介于 0 和 11 之间")
	public String getBoughtStocks() {
		return boughtStocks;
	}

	public void setBoughtStocks(String boughtStocks) {
		this.boughtStocks = boughtStocks;
	}
	
	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}
	
	public List<HkShopLuckyBurstCouponAdv> getHkShopLuckyBurstCouponAdvList() {
		return hkShopLuckyBurstCouponAdvList;
	}

	public void setHkShopLuckyBurstCouponAdvList(List<HkShopLuckyBurstCouponAdv> hkShopLuckyBurstCouponAdvList) {
		this.hkShopLuckyBurstCouponAdvList = hkShopLuckyBurstCouponAdvList;
	}
}